﻿<UserControl
    x:Class="SL4_NAV_ProjectiCON.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
    xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="1168" d:DesignHeight="1200">

    <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}" Width="1161">
        
            <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}" Margin="0,42,-2,0">
            <!--<ScrollViewer HorizontalScrollBarVisibility="Visible" Width="Auto" Height="Auto">-->
            <navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed" Height="Auto" FontSize="10" AllowDrop="False" Background="White" MaxHeight="1200" MaxWidth="1200" Width="1163">
                <navigation:Frame.UriMapper>
                    <uriMapper:UriMapper>
                        <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml" />
                        <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml" />
                    </uriMapper:UriMapper>
                </navigation:Frame.UriMapper>
            </navigation:Frame>
                <!--</ScrollViewer>--> 
            </Border>

        <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}">

            <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
                <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">

                    <ContentControl Style="{StaticResource LogoIcon}"/>
                    <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" 
                               Text="iCon"/>
                    <TextBlock x:Name="AppMessageTextBlock" Style="{StaticResource ApplicationNameStyle}" 
                               Text="- increases more clarity in approval decisions  using visual facts. " Width="321" FontWeight="Normal" FontStyle="Italic" FontStretch="ExtraCondensed" Foreground="#FF11DBAD" />

                </StackPanel>
            </Border>
            <Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}">
                <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">

                    <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Home" TargetName="ContentFrame" Content="Home"/>
									 
                    <Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>


                    
                    <HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Dashboard" TargetName="ContentFrame" Content="Dashboard"/>

                    <Rectangle x:Name="Divider2" Style="{StaticResource DividerStyle}"/>
                    
                  
                    <!--<HyperlinkButton x:Name="Link3" Style="{StaticResource LinkStyle}" 
                                    NavigateUri="/Estimate" TargetName="ContentFrame" Content="MnR"/>

                    <Rectangle x:Name="Divider3" Style="{StaticResource DividerStyle}"/>-->
                    
                    <HyperlinkButton x:Name="Link4" Style="{StaticResource LinkStyle}" 
                                      NavigateUri="/MnRApproval" TargetName="ContentFrame" Content="MnRApprovals"/>

                    <Rectangle x:Name="Divider4" Style="{StaticResource DividerStyle}"/>

                   
                    <HyperlinkButton x:Name="Link7" Style="{StaticResource LinkStyle}" 
                                     Click="OpenAnalytics_Click" Content="Analytics"/>

                    <Rectangle x:Name="Divider7" Style="{StaticResource DividerStyle}"/>

                    <HyperlinkButton x:Name="Link8" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/About" TargetName="ContentFrame" Content="About"/>

                </StackPanel>
            </Border>
        </Grid>
    </Grid>

</UserControl>